package com.haoze.nurseapp.vo;


import com.haoze.common.model.OrdersFileIndexEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class EmrFile implements Serializable {

    private String emrType;
    private OrdersFileIndexEntity emrFileIndexEntity;
    private List<EmrFileData> emrFileDataList;
    private List<Map<String, String>> observations;
    private String itemIds;
    private String groupName;
    private String reqNum;
    private String userName;
    private String showGroupName; //206、207显示的职称
    private String correctUsername;
    private String correctUserpwd;
    private boolean correctModified;
    private Map<String,Object> attributes;

    private String tplName;

    private transient String msg;
    private String printType;

    public boolean isCorrectModified() {
        return correctModified;
    }

    public Map<String, Object> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<String, Object> attributes) {
        this.attributes = attributes;
    }

    public OrdersFileIndexEntity getEmrFileIndexEntity() {
        return emrFileIndexEntity;
    }

    public void setEmrFileIndexEntity(OrdersFileIndexEntity emrFileIndexEntity) {
        this.emrFileIndexEntity = emrFileIndexEntity;
    }

    public List<EmrFileData> getEmrFileDataList() {
        if (emrFileDataList==null) {
            emrFileDataList = new ArrayList<>();
        }
        return emrFileDataList;
    }

    public void setEmrFileDataList(List<EmrFileData> emrFileDataList) {
        this.emrFileDataList = emrFileDataList;
    }

    public void setObservations(List<Map<String, String>> observations) {
        this.observations = observations;
    }

    public List<Map<String, String>> getObservations() {
        return observations;
    }

    public String getEmrType() {
        return emrType;
    }

    public void setEmrType(String emrType) {
        this.emrType = emrType;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCorrectUsername() {
        return correctUsername;
    }

    public void setCorrectUsername(String correctUsername) {
        this.correctUsername = correctUsername;
    }

    public String getCorrectUserpwd() {
        return correctUserpwd;
    }

    public void setCorrectUserpwd(String correctUserpwd) {
        this.correctUserpwd = correctUserpwd;
    }

    public boolean getCorrectModified() {
        return correctModified;
    }

    public void setCorrectModified(boolean correctModified) {
        this.correctModified = correctModified;
    }

    public String getItemIds() {
        return itemIds;
    }

    public void setItemIds(String itemIds) {
        this.itemIds = itemIds;
    }

    public String getReqNum() {
        return reqNum;
    }

    public void setReqNum(String reqNum) {
        this.reqNum = reqNum;
    }

    public String getShowGroupName() {
        return showGroupName;
    }

    public void setShowGroupName(String showGroupName) {
        this.showGroupName = showGroupName;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getPrintType() {
        return printType;
    }

    public void setPrintType(String printType) {
        this.printType = printType;
    }

    public String getTplName() {
        return tplName;
    }

    public void setTplName(String tplName) {
        this.tplName = tplName;
    }

    public void clearTempInfo() {
        this.setMsg("");
        this.setGroupName("");
        this.setAttributes(new HashMap<>(3));
    }
}
